/**
 * 執行初始化
 * 
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-3 10:01
 */
package com.addcn.texas.control {
	import com.addcn.fog.control.ICommand;
	import com.addcn.fog.control.SimpleCommand;
	
	import com.addcn.texas.Main;
	import com.addcn.texas.model.*;
	import com.addcn.texas.view.*;	
	
	public class LoginCommand extends SimpleCommand implements ICommand {
		
		public override function execute(data:Object = null):void {	
			if (!modelLocator.hasModel(UserInfoModel)) {
				modelLocator.addModel(UserInfoModel);
			}
			var _model = modelLocator.getModel(UserInfoModel);
			_model.login(data);			
		}

	}
}
